/* 通用重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
}

/* 控制区布局 */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.select-group, .input-group {
    /*display: flex;*/
    align-items: center;
    gap: 6px;
    /*flex: 1;*/
    min-width: 200px;
}

label {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

select, input {
    padding: 10px 14px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 16px;
    flex: 1;
    transition: all 0.3s;
    width: 200px;
}

select:focus, input:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.6);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    transform: translateY(-1px);
}

.theme-toggle {
    text-align: center;
    margin-bottom: 20px;
}
.theme-toggle button {
    margin: 0 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

th {
    padding: 14px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid;
    color: #e0d0b0;
    word-wrap: break-word;
}

tr:hover {
    transition: background 0.3s;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-style: italic;
}

/* 星星背景 */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}
.hidden {
    display: none;
}

/* 分页容器 */
.pagination-container {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #aaa;
}

/* 分页信息 */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-info select {
    width: auto;
    padding: 6px 10px;
    font-size: 14px;
}

/* 分页按钮组 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid;
    border-color: #b8860b;
    background: rgba(40, 20, 60, 0.7);
    color: #f0e68c;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #b8860b;
    color: white;
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* 页码数字 */
.page-number {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.page-number.active {
    background: #b8860b;
    color: white;
    font-weight: bold;
}

.page-number:hover:not(.active) {
    background: rgba(184, 134, 11, 0.3);
}

.goto-page {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.goto-page-input {
    width: 100px;
    height: 45px;
    padding: 10px 5px;
    margin: 0 5px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 16px;
    flex: 1;
    transition: all 0.3s;
}

.goto-page-btn {
    padding: 4px 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.goto-page-btn:hover:not(:disabled) {
    background-color: #0056b3;
}